<%@ page language="java" pageEncoding="utf-8"%>
<%@ include file="init.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>成龙网-照片管理</title>
		<meta name="keywords" content="教员申请记录" />
		<meta name="author" content="成龙网" />
		<meta name="copyright" content="成龙网" />
<script language="JavaScript">

//删除指定的文件 
function doDelete(name) {
	jConfirm("您确定删除这条记录吗？","删除图片",function(flag){
		if(flag) {
			$("#name").val(name);
			$("#inputForm").submit();
		}
	});
}
</script>
	</head>
	<body>
		<form id="inputForm" action="${ctx}/admin/teacher!del.action" method="post">
		<input type="hidden" name="id" value="${id}"/> 
		<input type="hidden" id="name" name="name" />
		
		<table class="table" bordercolor="#33CCB9" align="center" cellpadding="0"
			cellspacing="0">
			<tbody>
				<tr class="titlebg">
					<td class="jltd" align="center" valign="middle" width="22%">
						照片名称
					</td>
					<td class="jltd" align="center" valign="middle" width="40%">
						缩略图
					</td>
					<td class="jltd" align="center" valign="middle" width="30%">
						操作
					</td>
				</tr>
				<s:iterator value="photosList">
					<tr>
						<td style="padding-left: 3px;" class="jltd2" align="left"
							valign="middle" width="12%">
							${desc }
						</td>
						<td class="jltd" align="center" valign="middle">
							<a href="${ctx }/upload/teachers/${id}/${name }"
								target="_blank"><img alt="点击看大图" width="50" height="50"
									src="${ctx }/upload/teachers/${id}/${name }" /> </a>
						</td>

						<td class="jltd" align="center" valign="middle" width="50%">
							<a href="javascript:doDelete('${name }')">删除</a>&nbsp;
						</td>
					</tr>
				</s:iterator>
			</tbody>
		</table>
		</form>
	</body>
</html>